﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BestLifePOS_Core.Data.Commands;
using BestLifePOS_Core.DomainObjects;
using System.Data;

namespace BestLifePOS_Core.Data.Fascade
{
  public  class Recipt_DetailDAO
    {

      public static string SaveRecipt(Recipt_Detail Prcptdetails,string Pxml)
      {
          BestLifeReciptInsertDataAction Lvrecipt = new BestLifeReciptInsertDataAction(Prcptdetails,Pxml);
          return Lvrecipt.execute();
      }

      public static int CancelRecipt(string PCancel, string PReciptId, string PReason, string PUser)
      {
          BestLifeReciptCancelDataAction Lvrecipt = new BestLifeReciptCancelDataAction(PCancel, PReciptId, PReason, PUser);
          return Lvrecipt.execute();
      }



      public static List<Recipt_Detail> GetReiptsDetailsByReciptId(string PReciptId)
      {
          BestLifeReciptDetailsByReciptIdDataAction LvGet = new BestLifeReciptDetailsByReciptIdDataAction(PReciptId);
          return LvGet.execute();
      }

      //public static List<Recipt_Detail> GetReiptsDetailsByReciptId(string PReciptId)
      //{
      //    BestLifeReciptDetailsByReciptIdDataAction LvGet = new BestLifeReciptDetailsByReciptIdDataAction(PReciptId);
      //    return LvGet.execute();
      //}

      public static List<Recipt_Detail> GetReiptsDetailsByReciptId(string PReciptId)
      {
          BestLifeReciptDetailsByReciptIdDataAction LvGet = new BestLifeReciptDetailsByReciptIdDataAction(PReciptId);
          return LvGet.execute();
      }
    }
}
